<!DOCTYPE html>
<html lang="en">
	<head>
			<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width, initial-scale=1">
			<link href="css/style.css" rel="stylesheet">
		<title>html5新增的布局元素</title>
		{% load static%}
        <link rel="stylesheet" type="text/css" href="{% static 'css/7css.css' %}"/>
        <link rel="stylesheet" type="text/css" href="{% static 'css/2.css' %}"/>
        </script>
	</head>

	<body bgcolor="mediumblue"  background="{% static 'image/t01d61356d326bd0f99.jpg' %}">
        <!----头部-->
        {% include "htm1.html" %}
    
                <section>
                    {% for il in lstemp %}
                    {% for item in il %}
                    <article>
                        <h3  style="display:inline;">{{item.title}}</h3><br>
                        {% ifequal item.genre '1' %}
                        文章类型：<h4  style="display:inline;">技术类</h4>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% else %}
                        {% ifequal item.genre '2' %}
                        文章类型：<h4  style="display:inline;">生活类</h4>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% else %}
                        {% ifequal item.genre '3'  %}
                        文章类型：<h4  style="display:inline;">其它类</h4>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% endifequal %}
                        {% endifequal %}
                        {% endifequal %}
                        发布者：<h4 style="display:inline;">{{item.dept.name}}</h4>

                        {% autoescape off %}
                        <h4>{{item.artile}}</h4>
                        {% endautoescape %}
                        <br>
                    </article>
                    {% endfor %}
                    {% endfor %}
                    {% include "yewb.html" %}
                </section>
                <!--侧边栏-->
                

                </form>

            </body>        

</html>